#!/usr/bin/env python
# _*_ coding: utf-8 _*_
# @Time    : 2018/5/17 0017 下午 12:03
# @Author  : Jython <ijython@qq.com>
# @File    : user.py

# coding:utf-8
# user
from flask import Blueprint
import sys

sys.path.append('../../')
from util.Gview import Gview
from ..service.trailLesson import trailLesson

successRate = Blueprint('successRate', __name__)

@successRate.route('/getTeachersSuccessRank')
def getSuccessRate():
	data=trailLesson.getTrailLessonSuccessRate()
	return Gview.Vsuccess(data)

@successRate.route('/show')
def show():
	return Gview.Vfail('数据错误')
@successRate.route('/dics')
def dics():
	return {"name": 'jython'}

@successRate.route('/oo')
def oo():
	return "eee"
@successRate.route('/oi')
def oi():
	return [ 'name', 'ee' ]
